package com.example.springbootdemo.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: ShengXiaJia
 * @Date: 2019/12/6 11:17
 * @Description: 根据key前缀模糊删除满足条件的redis缓存(用于有返回值的方法上)
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface DelRedisCache {

    /**
     * redisKey...
     *
     * @return
     */
    String[] key() default {};
}
